package model
{
	public class PlayerTimeState
	{
		public var currentPosition:Number;
		public function get currentPositionString():String{
			var secs:int = (int)(this.currentPosition/1000);
			var strMins:String = (int)(secs/60).toString();
			if(strMins.length<2)
				strMins = '0'+strMins;
			var strSecs:String = (int)(secs%60).toString();
			if(strSecs.length<2)
				strSecs = '0'+strSecs;
			var str:String = strMins + ':' + strSecs;
			return str;
		}
		public var duration:Number;
		public function get durationString():String{
			var secs:int = (int)(this.duration/1000);
			var strMins:String = (int)(secs/60).toString();
			if(strMins.length<2)
				strMins = '0'+strMins;
			var strSecs:String = (int)(secs%60).toString();
			if(strSecs.length<2)
				strSecs = '0'+strSecs;
			var str:String = strMins + ':' + strSecs;
			return str;
		}
		
		public function PlayerTimeState(){
			
		}
	}
}